package com.bl.weilan.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by liangweikang on 19/9/30.
 */
@Data
@Entity
@Table(name = "teacher_train")
@ApiModel(value = "TeacherTrainEntity", description = "标签")
@DynamicInsert
@DynamicUpdate
public class TeacherTrainEntity {
    @Id
    @ApiModelProperty(value = "id")
    private String id;

    @ApiModelProperty(value = "活动名称")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "背景")
    private String background;

    @ApiModelProperty(value = "主讲人")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @Column(name = "update_time")
    private Date updateTime;

    @ApiModelProperty(value = "培训时间")
    private Date time;
}
